package User;

import Book.BookList;
import Operation.*;
import Operation.IOperation;


import java.util.Scanner;

public class AdmainUser extends User{
     static String Admain = "1234567890";
    public static boolean check(String str){
        return Admain.equals(str);
    }
    public AdmainUser(String name) {
        super(name);
        this.IOperations = new IOperation[]{
                new ExitOperation(),
                new AddOperation(),
                new DelOperation(),
                new FindOpperation(),
                new DisplayOperation()
        };
    }

    @Override
    public int menu() {
        System.out.println("请选择要选择的的操作》");
        System.out.println("1.添加图书");
        System.out.println("2.删除图书");
        System.out.println("3.找书图书");
        System.out.println("4.打印图书");
        System.out.println("0.退出图书");
        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        return input;
    }
    private boolean Check(String admin){
        return this.Admain == admin;
    }


}
